package com.dyh.service.userfollow;

import com.dyh.dao.UserFollowDao;
import com.dyh.pojo.UserFollow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserFollowServiceImpl implements UserFollowService{

    @Autowired
    private UserFollowDao userFollowDao;

    @Override
    public void addUserFollow(UserFollow userFollow) {
        userFollowDao.addUserFollow(userFollow);
    }

    @Override
    public void deleteUserFollow(int id) {
        userFollowDao.deleteUserFollow(id);
    }

    @Override
    public void updateUserFollow(UserFollow userFollow) {
        userFollowDao.updateUserFollow(userFollow);
    }

    @Override
    public List<UserFollow> queryUserFollowList() {
        return userFollowDao.queryUserFollowList();
    }

    @Override
    public UserFollow queryUserFollowById(int id) {
        return userFollowDao.queryUserFollowById(id);
    }
}
